﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>确认支付</title>
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="yes" name="apple-touch-fullscreen">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" />
    <link href="../css/ydui.css?v=1.1.4" rel="stylesheet" />
    <script src="../js/ydui.flexible.js"></script>
    <link rel="stylesheet" type="text/css" href="../css/all.css?v=20180302" />
</head>
<body ms-controller="ordersure" class="ms-controller">
    <div class="g-flexview" style="background: #fff;">
        <div class="g-scrollview">
            <div class="paysuccess-ico iconfont icon-duihao"></div>
            <p class="paysuccess-center">支付成功</p>
            <p class="paysuccess-price">¥{{@ModelData.SumPrice}}</p>
            <div class="orderlistdetail border">
                <p class="goodsprice">支付方式<i>微信支付</i></p>
            </div>
            <div class="orderlistdetail border">
                <p class="goodsprice">关注店铺公众号<abbr>关注</abbr></p>
            </div>
            <ul class="paysuccess-btn" ms-if="@ModelData.OrderType==1">
                <li class="change">分享一下</li>
                <li><a href="../list/classify.html">再来一单</a></li>
                <li><a href="list.html">查看详情</a></li>
            </ul>
            <ul class="paysuccess-btn" ms-if="@ModelData.OrderType==2">
                <li class="change" style="width:100%;"><a href="../user/quanlist.html">查看我的万能券</a></li>
            </ul>
        </div>
    </div>

    <script src="//cdn.bootcss.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="../js/ydui.js"></script>
    <script src="../js/avalon.mobile.min.js"></script>
    <script src="../js/ComFunJS.js?v=20180331"></script>
    <script>
        var model = avalon.define({
            $id: "ordersure",
            ModelData: {},
            ID: ComFunJS.getQueryString("id"),
            GetModelData: function () {
                if (model.ID) {
                    $.getJSON("/api/order/modelh/" + model.ID, function (r) {
                        model.ModelData = r.result;
                        //if (r.result.PayStatus == 0) {
                        //    window.location.replace("pay.html?id=" + model.ID);
                        //}

                    })
                } else {
                    window.location.replace("../person.html");
                }

            }

        })
        avalon.ready(function () {
            model.GetModelData();
        })
    </script>

</body>
</html>
